<?php
//
// +------------------------------------------------------------------------+
// | Gecko Framework                                                        |
// +------------------------------------------------------------------------+
//
require_once('Gecko/Form/Decorator/Interface.php');

/**
 * Simple form decorator
 *
 * @package Gecko.Form.Decorator;
 * @author Christopher Valderrama <valderrama.christopher@gmail.com>
 * @copyright Copyright (c) 2008
 * @version $Id$v1.0$ 2008
 * @access public
 **/
class Gecko_Form_Decorator_Simple implements Gecko_Form_Decorator_Interface {
	/**
	 * Decorates the field, before printing it in
	 * the form
	 *
	 * @param string The Field HTML Code
	 */
	public function decorateField(Gecko_Form_Field_Interface $field) {
		return $field->getControl();
	}

	/**
	 * Decorates the error messages for the field
	 *
	 * @param array The error messages
	 */
	public function decorateError($messages) {
		return $messages;
	}
}